Subject: Re: newer G4 models and panic: lockmgr: pid 0, not exclusive lock holder
To: Makoto Fujiwara <makoto@ki.nu>
From: Aymeric Vincent <Aymeric.Vincent@labri.fr>
List: port-macppc
Date: 06/25/2002 18:03:28
        Hi,

I have an iBook "late 2001", G3 600MHz, combo drive.

It has the same problems you describe. "my personal workaround" for
that is to attach the ADB keyboard unconditionnally in
macppc/machdep.c:cninit_kd().

Of course this is not the right thing, but I thought it might help
others to diagnose where the problem is coming from.

With that change I can boot a GENERIC -current from june 24th.

Take care,
 Aymeric

Index: machdep.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/macppc/macppc/machdep.c,v
retrieving revision 1.114
diff -u -r1.114 machdep.c
--- machdep.c	2002/06/19 17:01:20	1.114
+++ machdep.c	2002/06/25 15:57:58
@@ -914,6 +914,8 @@
 	 */
 	ofb_cnattach();
 
+		akbd_cnattach();
+		goto kbd_found;
 	/*
 	 * We must determine which keyboard type we have.
 	 */



Makoto Fujiwara <makoto@ki.nu> writes:

> ./build.sh from
> /pub/NetBSD-daily/200206190000/source/sets/ 
> and use netbsd.GENERIC_MD.gz to boot:
> (Hardware is G4/800 MP, PPC7450)
> -----------
> >> NetBSD/macppc OpenFirmware Boot, Revision 1.6
> >> makoto@ibook, Mon May 27 16:28:24 JST 2002
> 59392+219184=0x5dfa54
>  start=0x800000
> trap type 200 at a1b924
> Press a key to panic.
> panic: trap
> Stopped in pid 0 () at 0xa0f3b4:    lwz r0,r1,0x14
> db> _
> 
> method <`usb-kbd-ihandles> not found; ihandle=ffbc8740 phandle=ff931210
> -----------
> (unable to type in)
> ------ objdump for above address ---
> 0021b70c <softclock>:
> ...
>   21b900:       48 0f e7 6d     bl      31a06c <splraise>
>   21b904:       3b c0 00 00     li      r30,0
>   21b908:       81 19 97 60     lwz     r8,-26784(r25)
>   21b90c:       2c 08 00 00     cmpwi   r8,0
>   21b910:       40 82 ff 0c     bne     21b81c <softclock+0x110>
>   21b914:       80 1f 00 08     lwz     r0,8(r31)
>   21b918:       2c 00 00 00     cmpwi   r0,0
>   21b91c:       40 82 00 14     bne     21b930 <softclock+0x224>
>   21b920:       39 20 ff ff     li      r9,-1
> > 21b924:       39 40 ff ff     li      r10,-1
> -------------------------------------
> 
> (2) AFTER 
> with applying patch for 4400 fix and build kernel only:
> -------------------------------------
> ... (the same thing) ...
> 3839312+218576 [189312+155988]=0x433280
>  start=0x100000
> 
> console keyboard type: USB
> [using 345952 bytes of netbsd ELF symbol table ]
> _
> 
> 
> method <`usb-kbd-ihandles> not found; ihandle=ffbc8740 phandle=ff93120
> method <`usb-kbd-ihandle> not found; ihandle=ffbc8740 phandle=ff93120
> method <`adb-kdb-ihandle> not found; ihandle=ffbc8740 phandle=ff93120
> 
> (hungs there and unable to type in)
> -------------------------------------
> ---
> Makoto Fujiwara,